import {lazy} from "react"
import {Navigate} from "react-router-dom"
const PieChart = lazy(()=>import("../pages/PieChart"))
const Mychart = lazy(()=>import("../pages/mycharts"))
const routerconfig = [
    {
        path:"/mychart",
        element:<Mychart></Mychart>
    },
    {
        path:"/PieChart",
        element:<PieChart></PieChart>
    },
    {
        path:"/",
        element:<Navigate to="/mychart"></Navigate>
    }
]
export default routerconfig